package com.cmc.cloud.cmclink.doc.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.cmc.cloud.cmclink.doc.entity.VgmDO;
import com.cmc.cloud.cmclink.doc.vo.vgm.VgmPageReqVO;
import com.cmes.framework.mybatis.core.mapper.BaseMapperX;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * VMG信息 Mapper
 *
 * @author 集运管理员
 */
@Mapper
public interface VgmMapper extends BaseMapperX<VgmDO> {

    /**
     * 分页查询vgm信息
     *
     * @param page
     * @param reqVo
     * @return
     */
    IPage<VgmDO> selectPageList(IPage<VgmDO> page, @Param("reqVo") VgmPageReqVO reqVo);

    /**
     * 查询船名航次下的所有箱号
     *
     * @param vesselCode
     * @param voyage
     * @return
     */
    List<String> selectCntrNo(@Param("vesselCode") String vesselCode, @Param("voyage") String voyage,@Param("id") Long id);
}
